package com.arrogames.blondbattle.game.graphics 
{
	import flash.display.BitmapData;
	import flash.display.Shape;
	import flash.geom.Matrix;
	import starling.display.Image;
	import starling.textures.Texture;
	
	/**
	 * ...
	 * @author ...
	 */
	public class MissileView extends Image 
	{
		
		public function MissileView()
		{
			var angle : Number = 0;
			var shape : Shape = new Shape();
			shape.graphics.beginFill( 0xFFFFFF );
			shape.graphics.drawEllipse(0, 0, 6, 8);
			shape.graphics.endFill();
			
			var bitmapData : BitmapData = new BitmapData( 6, 8, true, 0 );
			var transform : Matrix = new Matrix();
			transform.tx = 6
			transform.ty = 8;
			bitmapData.draw( shape, transform, null, null, null, true );
			
			var texture : Texture = Texture.fromBitmapData( bitmapData, false, false, 1 );
			super( texture );
			
			pivotX = shape.width / 2;
			pivotY = shape.height;
		}
		
	}

}